-- GENERATED SPELL FOR [Bjarn] --


function spell0_1130(pUnit, Event) --@Ice Claw,n/a--
pUnit:FullCastSpellOnTarget(3130,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1130', 6000, 1)
end

function spell1_1130(pUnit, Event) --@Rend Flesh,n/a--
pUnit:FullCastSpellOnTarget(3147,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1130', 12000, 1)
end

function Sorts_1130(pUnit, Event)
local choix_sorts_1130 = math.random(0, 1)
if choix_sorts_1130 == 0 then
pUnit:RegisterEvent('spell0_1130', 1, 1)
end
if choix_sorts_1130 == 1 then
pUnit:RegisterEvent('spell1_1130', 1, 1)
end
end

function mob1130_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1130', math.random(1500, 3000), 1)
end

function mob1130_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1130_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1130_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1130, 1, 'mob1130_Action')
RegisterUnitEvent(1130, 2, 'mob1130_Leave')
RegisterUnitEvent(1130, 3, 'mob1130_Kill')
RegisterUnitEvent(1130, 4, 'mob1130_Die')
